<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">

</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#">出库单详情</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                        <a href="#" onclick="Print('${expExportDetail.masterId}')" class="btn btn-primary" style="margin-bottom: 10px">打印</a>
                    <table id="itemTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>名称</th>
                            <th>规格</th>
                            <th>单位</th>
                            <th>厂家</th>
                            <th>批号</th>
                            <th>有效期</th>
                            <th>灭菌方式</th>
                            <th>灭菌批号</th>
                            <th>灭菌日期</th>
                            <th>出库单价</th>
                            <th>数量</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${expExportDetaiList}" var="expExportList">
                        <tr>
                            <td> ${expExportList.expName}</td>
                            <td> ${expExportList.packageSpec}</td>
                            <td> ${fns:getDictLabels(expExportList.packageUnits, 'SPEC_UNIT', '')}</td>
                            <td> ${expExportList.remarks}</td>
                            <td> ${expExportList.batchNo}</td>
                            <td><fmt:formatDate value="${expExportList.expireDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                            <td> ${fns:getDictLabel(expExportList.sterilizationMethod, 'STERILIZATION_METHOD', '')}</td>
                            <td> ${expExportList.sterilizationBatchNo}</td>
                            <td><fmt:formatDate value="${expExportList.sterilizationDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                            <td> ${expExportList.purchasePrice}</td>
                            <td> ${expExportList.quantity}</td>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>
<script>
    function Print(masterId){
        printPdf('${ctx}/csm/expDetails/expExportDetailsPrint?masterId='+masterId);
    }
</script>